#coding=utf-8
import numpy as np
import pandas as pd

'''
0    1.0
1    3.0
2    5.0
3    NaN
4    6.0
5    8.0
'''
def use_Series() : 
    s = pd.Series([1, 3, 5, np.nan, 6, 8])
    print(s)

#用含日期时间索引与标签的 NumPy 数组生成 DataFrame
def use_DataFrame():
    dates = pd.date_range('20221219', periods=5)
    #print(dates)

    df = pd.DataFrame(np.random.randn(5, 4), index=dates, columns=list(['10a','20b','30c','40d']))
    print(df)



if __name__ == '__main__':
    use_DataFrame()
